package com.songqintuan.common.dal.database;

public class DataSourceContextHolder {
    private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();
    private static final ThreadLocal<String> stationHolder = new ThreadLocal<String>();
	
	public static void setDataSourceType(String dataSourceType) {
	   contextHolder.set(dataSourceType);
	}
		
	public static String getDataSourceType() {
	   return (String) contextHolder.get();
	}
	
	public static void clearDataSourceType() {
	   contextHolder.remove();
	}
	
	public static void setStation(String station) {
		stationHolder.set(station);
	}
		
	public static String getStation() {
	   return (String) stationHolder.get();
	}
}
